// onload 事件动态注册
window.onload = function () {
    let cookies1=$.cookie("id");
    let cookies2 = $.cookie("usernameShow");

    //console.log('获取cookie值：'+cookies);
    //console.log('获取cookie值：'+cookies2);
    if (cookies1==undefined) {
        $("#showUsername").hide();
        $("#login_logon").show();
        $("#showUsername").html('');
    } else{
        $("#login_logon").hide();
        $("#showUsername").attr("href","../team/person_page.jsp?userId="+cookies1.toString());
        $("#showUsername").html(cookies2);

    }
}
